<ion-view view-title="幸运28游戏记录" need-login>
    <ion-nav-bar class="bar-positive bar-header-black" align-title="center">
        <ion-nav-back-button>返回</ion-nav-back-button>
    </ion-nav-bar>
    <ion-content>
        <ion-refresher pulling-text="下拉刷新列表..." on-refresh="doRefresh()">
        </ion-refresher>
        <ion-list>
            <div ng-if="records.length==0" style="margin: 10px;color: grey">
                没有任何记录.
            </div>
            <div class="item rec-history" ng-repeat="r in records">
                <div class="row clearfix">
                    <div class="left">第{{r.num}}期 {{r.luckyNumber}}</div>
                    <div class="right" style="color: rgba(128, 128, 128, 0.51);">{{r.createTime}}</div>
                </div>
                <div class="row time">
                    <span>金额：</span>
                    <span style="color:orange">{{r.money.toFixed(2)}}</span>
                    <span style="">({{r.desc1}})</span>
                    <span style="margin-left: 72px;">输赢：</span>
                    <strong ng-if="r.inoutNum>0" style="color:red">￥+{{r.inoutNum}}</strong>
                    <strong ng-if="r.inoutNum<0" style="color:green">￥{{r.inoutNum}}</strong>
                    <strong ng-if="r.inoutNum==0" >￥+0</strong>
                </div>
            </div>
        </ion-list>
        <ion-infinite-scroll on-infinite="loadMore()" ng-if="!noMoreItemsAvailable">
        </ion-infinite-scroll>
    </ion-content>
</ion-view>
